<?php
	//include_once("Core/ChromePhp.php");
	/*
	参考资料：
	http://www.cnblogs.com/c3055/archive/2011/08/18/2143832.html
	*/
	
	/*
	定义基本的变量
	*/
	
	$bhUri="https://my.bluehost.com/cgi-bin/cplogin";
	$bhUserName="zhenfeic";
	$bhPassword="aaAbc123456!";
	$request="";
	
	/*
	CURL的基本操作
	*/
	
	// 1. 初始化
	$ch = curl_init();
	// 2. 设置选项，包括URL
	curl_setopt($ch, CURLOPT_URL, $bhUri);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
	
	
	/*
	ChromePhp::log('hello world');
	ChromePhp::log($_SERVER);
	// using labels
	foreach ($_SERVER as $key => $value) {
		ChromePhp::log($key, $value);
	}

	// warnings and errors
	ChromePhp::warn('this is a warning');
	ChromePhp::error('this is an error');
	*/
	// 3. 执行并获取HTML文档内容
	$output = curl_exec($ch);
	//print_r($output);
	// 4. 释放curl句柄
	curl_close($ch);
	
	
	
	